cmake_minimum_required(VERSION 3.31.0)
project(Algorithm VERSION 0.1.0)

aux_source_directory(./src/ MAIN)

aux_source_directory(./src/container SRC_CONTAINER)
aux_source_directory(./src/math SRC_MATH)
aux_source_directory(./src/others SRC_OTHERS)
aux_source_directory(./src/strings SRC_STRINGS)
aux_source_directory(./src/tools SRC_TOOLS)
aux_source_directory(./src/utils SRC_UTILS)

aux_source_directory(./include/container INCLUDE_CONTAINER)
aux_source_directory(./include/math INCLUDE_MATH)
aux_source_directory(./include/others INCLUDE_OTHERS)
aux_source_directory(./include/strings INCLUDE_STRINGS)
aux_source_directory(./include/tools INCLUDE_TOOLS)
aux_source_directory(./include/utils INCLUDE_UTILS)

add_executable(
    Algorithm
    ${MAIN}

    ${SRC_CONTAINER}
    ${SRC_MATH}
    ${SRC_OTHERS}
    ${SRC_STRINGS}
    ${SRC_TOOLS}
    ${SRC_UTILS}

    ${INCLUDE_CONTAINER}
    ${INCLUDE_MATH}
    ${INCLUDE_OTHERS}
    ${INCLUDE_STRINGS}
    ${INCLUDE_TOOLS}
    ${INCLUDE_UTILS})

link_directories(/usr/lib)
target_link_libraries(${PROJECT_NAME} -lm)  #math lib

